<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp"%>
<%@ include file="/base/database.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>课程信息表</title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<link rel="shortcut icon" href="images/logo.jpg">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>

</head>

<body>

  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder">课程信息表</strong> </div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
      <li><a href="page/instructor/course_add.jsp" class="button border-main icon-search" onclick="changesearch()" > 添加课程</a></li>
        <form action="page/instructor/action_searchcourse.jsp" method="post">
        <li>按编号查询：</li>     
        <li><input type="text" placeholder="请输入搜索关键字" name="date" class="input" style="width:250px; line-height:17px;display:inline-block" />
        <input type="submit" value="查询"/></li>
        <button class="button bg-main icon-check-square-o" type="button" onclick="window.location.href='course_list.jsp'" value="返回 ">返回</button>
		</form> 
      </ul>
    </div>
   
    <table class="table table-hover text-center">
      <tr>
       			<th>序号</th>
				<th>课程编号</th>
				<th>班号</th>
				<th>课程名称</th>
				<th>学年</th>
				<th>学期</th>
				<th>学时</th>
				<th>操作</th>
				
      </tr>
    
				
				
			
			<% 
				String rs_courseID=(String)session.getAttribute("rs_courseID");
				String rs_classID=(String)session.getAttribute("rs_classID");
				String rs_courseName=(String)session.getAttribute("rs_courseName");
				String rs_year=(String)session.getAttribute("rs_year");
				String rs_term=(String)session.getAttribute("rs_term");
				String rs_hour=(String)session.getAttribute("rs_hour");
				
				int index=1;
			%>

			<tr>
				 <td><%=index++ %></td>
				<td><%=rs_courseID%></td>
				<td><%=rs_classID%></td>
				<td><%=rs_courseName %></td>
				<td><%=rs_year%></td>
				<td><%=rs_term %></td>				
				<td><%=rs_hour%></td>
				<td><div class="button-group">
				 <a class="button border-main" href="<%=path%>/page/instructor/course_edit.jsp?rs_courseID=<%=rs_courseID%>"><span class="icon-edit"></span> 修改</a> <a class="button border-red" href="<%=path%>/page/instructor/action_delcourse.jsp?rs_courseID=<%=rs_courseID%>" ><span class="icon-trash-o"></span> 删除</a>  </div></td>
			</tr>

    </table>
  </div>
  <div class="pagelist"> <a href="">上一页</a> <span class="current">1</span><a href="">2</a><a href="">3</a><a href="">下一页</a><a href="">尾页</a> </div>

</body>
</html>
